package com.github.bobjoy.java.jdk8;

import com.github.bobjoy.java.jdk8.interface_function.Functional;
import com.github.bobjoy.java.jdk8.interface_function.FunctionalImpl;

import java.util.ArrayList;
import java.util.List;

public class InterfaceFunctionDemo {

    private static Functional test(Functional fun) {
        return fun;
    }

    public static void main(String[] args) {

        @SuppressWarnings("unchecked")
        List list = new ArrayList<>();


        test(new FunctionalImpl()).print("Hello");

    }

}
